chapter 3 matrices